package string;

/**
 * Created by L.jp
 * Description:
 * User: 86189
 * Date: 2022-10-06
 * Time: 10:56
 */
public class Test_CommonMethod {
    public static void main(String[] args) {
        String s4 = "abc";
        System.out.println("字符串的长度为："+s4.length());
        String s5 = new String("abc");
        System.out.println("字符串是否为空："+s5.isEmpty());
        System.out.println("获取字符串的下标对应的字符为："+s5.charAt(1));
    }
}
